# 初始化数据库表
from orm import Request, Status, Log,Room

def Inital_db():
    Log.delete().execute()
    Request.delete().execute()
    Room.delete().execute()
    q = Status.update({
        'target_temp': 22,
        'speed': 0,
        'amount':0,
        'start_time':None,
        'open':0
    }).execute()

if __name__ =='__main__':
    Inital_db()
